﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DianShangHouTai.Models
{
    public class UIUser_Add
    {
        public int Id { get; set; }
        [Required(ErrorMessage = "账号不可以为欸空")]
        [Display(Name = "账号")]
        public string ZhangHao { get; set; }
        [Required (ErrorMessage ="用户名不可以为欸空")]
        [Display(Name ="用户名")]
         public string XingMin { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        //[StringLength(16, ErrorMessage = "密码长度为6到16个字符", MinimumLength = 6)]
        //[RegularExpression(@"^\w+\d+$", ErrorMessage = "密码必须包含字母和数字")]
        public string PassWord { get; set; }
        public DateTime DengLuTime { get; set; }
        public DateTime datetime { get; set; }
    }
}